{{extends file="admin/admin_header.tpl"}}
{{block name="content"}}
<h3>内容管理</h3>
<div class="col-sm-3 content-sidebar">
	{{include file="admin/tree.tpl"}}
</div>
<div class="col-sm-9 content-main">
	<form action="{{site_url('document/StoreFile')}}" method="post" enctype="multipart/form-data">
		<input type="hidden" name="Method" value="{{$Method}}"/>
		<input type="hidden" name="Id" value="{{$Download.0.Id}}">
		<div class="form-group">
			<label>所属栏目：</label>
			<select name="Pid" class="form-control">
				{{foreach $lastcate as $c}}
				<option value="{{$c.Id}}" {{if $Download.0.Pid==$c.Id}}selected='selected'{{/if}} >{{$c.CateName}}</option>
				{{/foreach}}
			</select>
		</div>
		<div class="form-group">
			<label>文件名称：</label>
			<input class="form-control" name="Title" value="{{$Download.0.Title}}">
		</div>
		<div class="form-group">
			<label>上传文件</label>
			<div class="buttonHolder">
				<input type="file" onchange="imageUploaded()" name="Download">
				<div class="button-mask imageUploaded">选择文件</div>
			</div>
		</div>
		<div class="submitHolder">
			<input type="submit" value="提交" class="document-edit-submit">
		</div>
	</form>
</div>
{{/block}}


